// 牛群结构，相关接口
import request from '@/utils/request.js'

// 牛群结构》牛群列表，导入-牛群记录
export const reqUploadCowRecord = (data) => {
    return request({
        url: '/cow/upload-cow-record',
        method: 'post',
        data
    })
}

// 牛群结构》牛群列表，保存-牛群记录
export const reqSaveCowRecord = (data) => {
    return request({
        url: '/cow/save-cow-record',
        method: 'post',
        data
    })
}

// 牛群结构》牛群列表，获取牛身体状态，下拉选
export const reqGetCattleStatus = () => {
    return request({
        url: '/dict/status/list',
        method: 'get'
    })
}

// 牛群结构》牛群列表，获取牛品种，下拉选
export const reqGetBreedList = () => {
    return request({
        url: '/dict/breed/list',
        method: 'get'
    })
}

// 牛群结构》牛群列表，获取牛群分类，下拉选
export const reqGetGroupList = () => {
    return request({
        url: '/dict/group/list',
        method: 'get'
    })
}

// 牛群结构》牛群列表，获取牛疾病，下拉选
export const reqGetDiseaseList = () => {
    return request({
        url: '/dict/disease/list',
        method: 'get'
    })
}

// 牛群结构》牛群列表，通过 id  查详情
export const reqGetCowGetInfo = (params) => {
    return request({
        url: '/cow/getInfo',
        method: 'get',
        params
    })
}

// 牛群结构》牛群列表，编辑，保存
export const reqCowUpdate = (data) => {
    return request({
        url: '/cow/update',
        method: 'post',
        data
    })
}